$(document).ready(function() {

	var difficulte = $('#difficulte option:selected').val();
	
	$.ajax({
	type: 'POST', // Le type de ma requete
	url: '/zombiesweeper/demineur/scores/GestionScores.php',
	data: {
		difficulte: difficulte 
	}, 
	complete: function(result) {
		$('#score').html(result.responseText);
	},
	});
	
	$('#difficulte').change(function() {
		difficulte = $('#difficulte option:selected').val();
		
		$.ajax({
		type: 'POST', // Le type de ma requete
		url: '/zombiesweeper/demineur/scores/GestionScores.php',
		data: {
			difficulte: difficulte 
		}, 
		complete: function(result) {
			$('#score').html(result.responseText);
		},
		});
	
	});



});